package com.lottery.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lottery.entity.Member;


public interface MemberDao {
    public Member findMemberByAccount(@Param("memberAccount") String memberAccount);
    
    public int insertMember(Member member);
    
    public List<Member> findMemberByLeader(@Param("memberLeader") String memberLeader);
    
    public int updateMemberByAccount(Member member);
    
    public int updatePasswordByAccount(@Param("memberAccount")String memberAccount,@Param("oldPassword")String oldPassword,@Param("newPasswrod")String newPasswrod);
    
    public List<Member> findMemberByStatus(@Param("memberNumStatus") String memberNumStatus);
    
    public List<Member> findMemberByAccounts(@Param("ids")String[] ids);
    
    public int activate(@Param("memberAccount")String id,@Param("flag")String flag);
    
    public List<Member> findAllMembers();
}
